using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model.Entity.Master
{
    /// <summary>
    /// 供应商订单 
    /// </summary>
    [SugarTable("order_hotel_supplier")]
    public class OrderHotelSupplier
    {

        /// <summary>
        /// 自增id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public int Id { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(ColumnName = "order_id")]
        public string OrderId { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        [SugarColumn(ColumnName = "supplier")]
        public string Supplier { get; set; }

        /// <summary>
        /// 供应商订单号
        /// </summary>
        [SugarColumn(ColumnName = "supplier_order_id")]
        public string SupplierOrderId { get; set; }

        /// <summary>
        /// 供应商订单状态
        /// </summary>
        [SugarColumn(ColumnName = "supplier_order_status")]
        public OrderHotelStatus SupplierOrderStatus { get; set; }

        /// <summary>
        /// 预订失败代码
        /// </summary>
        [SugarColumn(ColumnName = "supplier_error_code")]
        public int SupplierErrorCode { get; set; }

        /// <summary>
        /// 供应商酒店id
        /// </summary>
        [SugarColumn(ColumnName = "supplier_hotel_id")]
        public string SupplierHotelId { get; set; }

        /// <summary>
        /// 供应商房型id
        /// </summary>
        [SugarColumn(ColumnName = "supplier_room_id")]
        public string SupplierRoomId { get; set; }

        /// <summary>
        /// 供应商房型名称
        /// </summary>
        [SugarColumn(ColumnName = "supplier_room_name")]
        public string SupplierRoomName { get; set; }

        /// <summary>
        /// 餐食类型
        /// </summary>
        [SugarColumn(ColumnName = "supplier_meal_type")]
        public string SupplierMealType { get; set; }

        /// <summary>
        /// 餐食类型说明
        /// </summary>
        [SugarColumn(ColumnName = "supplier_meal_desc")]
        public string SupplierMealDesc { get; set; }

        /// <summary>
        /// 餐食数量
        /// </summary>
        [SugarColumn(ColumnName = "supplier_meal_count")]
        public int SupplierMealCount { get; set; }

        /// <summary>
        /// 价格计划id
        /// </summary>
        [SugarColumn(ColumnName = "supplier_rateplan_id")]
        public string SupplierRateplanId { get; set; }

        /// <summary>
        /// 销售货币
        /// </summary>
        [SugarColumn(ColumnName = "supplier_currency")]
        public string SupplierCurrency { get; set; }

        /// <summary>
        /// 销售金额
        /// </summary>
        [SugarColumn(ColumnName = "supplier_price")]
        public decimal SupplierPrice { get; set; }

        /// <summary>
        /// 免费取消时限
        /// </summary>
        [SugarColumn(ColumnName = "supplier_free_cancel_time")]
        public DateTime SupplierFreeCancelTime { get; set; }

        /// <summary>
        /// 附加数据
        /// </summary>
        [SugarColumn(ColumnName = "supplier_extras_json", IsJson = true)]
        public Dictionary<string, string> SupplierExtrasJson { get; set; }

        /// <summary>
        /// 预订说明
        /// </summary>
        [SugarColumn(ColumnName = "supplier_remark")]
        public string SupplierRemark { get; set; }

        /// <summary>
        /// 更新人id
        /// </summary>
        [SugarColumn(ColumnName = "updated_by")]
        public int UpdatedBy { get; set; }

        /// <summary>
        /// 更新人姓名
        /// </summary>
        [SugarColumn(ColumnName = "updated_by_name")]
        public string UpdatedByName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "updated_time")]
        public DateTime UpdatedTime { get; set; }

    }
}
